/**
 * 书籍的数据库结构
 */
const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        lat: Number,//经度
        lng: Number,//纬度
        cityId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'City'//用户id
        },
        address: String,//地址名称
        phone: String,//手机号
        startTime: Date,//开始日期
        endTime: Date,//结束日期
        name: String,//店铺名称
        des: String,//简介
        logo: String,//店铺封面
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'storage'});

    return schema;
    //return mongoose.model('WechatUser', schema);
};


